package com.wdf.dota;

import com.wdf.bean.Dota2HeroInfo;

import android.app.Activity;
import android.os.Bundle;
import android.text.Html;
import android.widget.TextView;

public class Dota2HeroInfoActivity extends Activity {


	

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.hero_info);

		try {
		Bundle bundle = this.getIntent().getExtras();
		String heroname =	bundle.getString("heroname");
		
		Dota2HeroInfo info = new Dota2HeroInfo();
		
		String 	description = info.getClass().getField(heroname+"_info").get(info).toString();

		TextView herodescription= (TextView) findViewById(R.id.herodescription);

			herodescription.setText(Html.fromHtml(description));


		} catch (Exception e) {
		}
		
		
	}
}
